<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="zh">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
<meta name="generator" content="Doxygen 1.11.0"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>cppMISC: src/base64.cpp 文件参考</title>
<link href="../../tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="../../jquery.js"></script>
<script type="text/javascript" src="../../dynsections.js"></script>
<script type="text/javascript" src="../../clipboard.js"></script>
<link href="../../navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="../../resize.js"></script>
<script type="text/javascript" src="../../cookie.js"></script>
<link href="../../search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="../../search/searchdata.js"></script>
<script type="text/javascript" src="../../search/search.js"></script>
<script type="text/javascript" src="../../darkmode_toggle.js"></script>
<link href="../../doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr id="projectrow">
  <td id="projectalign">
   <div id="projectname">cppMISC<span id="projectnumber">&#160;v1.1</span>
   </div>
   <div id="projectbrief">cppMisc 文档系统</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.11.0 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
var searchBox = new SearchBox("searchBox", "../../search/",'.html');
/* @license-end */
</script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function() { codefold.init(1); });
/* @license-end */
</script>
<script type="text/javascript" src="../../menudata.js"></script>
<script type="text/javascript" src="../../menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function() {
  initMenu('../../',true,false,'search.php','搜索',false);
  $(function() { init_search(); });
});
/* @license-end */
</script>
<div id="main-nav"></div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function(){ initResizable(false); });
/* @license-end */
</script>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<div id="MSearchResults">
<div class="SRPage">
<div id="SRIndex">
<div id="SRResults"></div>
<div class="SRStatus" id="Loading">载入中...</div>
<div class="SRStatus" id="Searching">搜索中...</div>
<div class="SRStatus" id="NoMatches">未找到</div>
</div>
</div>
</div>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="../../dir_68267d1309a1af8e8297ef4c3efbcdba.html">src</a></li>  </ul>
</div>
</div><!-- top -->
<div id="doc-content">
<div class="header">
  <div class="summary">
<a href="#func-members">函数</a>  </div>
  <div class="headertitle"><div class="title">base64.cpp 文件参考</div></div>
</div><!--header-->
<div class="contents">
<div class="textblock"><code>#include &lt;openssl/evp.h&gt;</code><br />
<code>#include &lt;string&gt;</code><br />
<code>#include &lt;openssl/bio.h&gt;</code><br />
<code>#include &lt;openssl/buffer.h&gt;</code><br />
<code>#include &lt;string.h&gt;</code><br />
</div><div class="textblock"><div class="dynheader">
base64.cpp 的引用(Include)关系图:</div>
<div class="dyncontent">
<div class="center"><img src="../../da/d4b/base64_8cpp__incl.png" border="0" usemap="#asrc_2base64_8cpp" alt=""/></div>
<map name="asrc_2base64_8cpp" id="asrc_2base64_8cpp">
<area shape="rect" title=" " alt="" coords="203,5,313,32"/>
<area shape="rect" title=" " alt="" coords="5,80,108,107"/>
<area shape="poly" title=" " alt="" coords="224,35,107,77,105,72,222,30"/>
<area shape="rect" title=" " alt="" coords="131,80,184,107"/>
<area shape="poly" title=" " alt="" coords="242,35,189,73,186,68,239,30"/>
<area shape="rect" title=" " alt="" coords="209,80,307,107"/>
<area shape="poly" title=" " alt="" coords="260,33,260,64,255,64,255,33"/>
<area shape="rect" title=" " alt="" coords="330,80,444,107"/>
<area shape="poly" title=" " alt="" coords="282,30,353,70,350,74,279,35"/>
<area shape="rect" title=" " alt="" coords="468,80,533,107"/>
<area shape="poly" title=" " alt="" coords="301,30,455,76,453,81,299,35"/>
</map>
</div>
</div>
<p><a href="../../d8/d58/base64_8cpp_source.html">浏览该文件的源代码.</a></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="func-members" name="func-members"></a>
函数</h2></td></tr>
<tr class="memitem:a55c588a0820680ad8edc8baa9ff07134" id="r_a55c588a0820680ad8edc8baa9ff07134"><td class="memItemLeft" align="right" valign="top">char *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a55c588a0820680ad8edc8baa9ff07134">Base64Encode</a> (const void *src, size_t s)</td></tr>
<tr class="separator:a55c588a0820680ad8edc8baa9ff07134"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a377de08dce41aa611ec49295bcae869f" id="r_a377de08dce41aa611ec49295bcae869f"><td class="memItemLeft" align="right" valign="top">size_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a377de08dce41aa611ec49295bcae869f">Base64Decode</a> (const std::string &amp;src, void *rst)</td></tr>
<tr class="memdesc:a377de08dce41aa611ec49295bcae869f"><td class="mdescLeft">&#160;</td><td class="mdescRight">base64解码  <br /></td></tr>
<tr class="separator:a377de08dce41aa611ec49295bcae869f"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<h2 class="groupheader">函数说明</h2>
<a id="a377de08dce41aa611ec49295bcae869f" name="a377de08dce41aa611ec49295bcae869f"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a377de08dce41aa611ec49295bcae869f">&#9670;&#160;</a></span>Base64Decode()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">size_t Base64Decode </td>
          <td>(</td>
          <td class="paramtype">const std::string &amp;</td>          <td class="paramname"><span class="paramname"><em>src</em></span>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">void *</td>          <td class="paramname"><span class="paramname"><em>rst</em></span>&#160;)</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>base64解码 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">src,要解码的数据</td><td></td></tr>
    <tr><td class="paramname">rst,解码结果</td><td>@retrun 结果数据的长度 </td></tr>
  </table>
  </dd>
</dl>

<p class="definition">在文件 <a class="el" href="../../d8/d58/base64_8cpp_source.html">base64.cpp</a> 第 <a class="el" href="../../d8/d58/base64_8cpp_source.html#l00032">32</a> 行定义.</p>

</div>
</div>
<a id="a55c588a0820680ad8edc8baa9ff07134" name="a55c588a0820680ad8edc8baa9ff07134"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a55c588a0820680ad8edc8baa9ff07134">&#9670;&#160;</a></span>Base64Encode()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">char * Base64Encode </td>
          <td>(</td>
          <td class="paramtype">const void *</td>          <td class="paramname"><span class="paramname"><em>src</em></span>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">size_t</td>          <td class="paramname"><span class="paramname"><em>s</em></span>&#160;)</td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="../../d8/d58/base64_8cpp_source.html">base64.cpp</a> 第 <a class="el" href="../../d8/d58/base64_8cpp_source.html#l00007">7</a> 行定义.</p>

</div>
</div>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
制作者&#160;<a href="https://www.doxygen.org/index.html"><img class="footer" src="../../doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.11.0
</small></address>
</div><!-- doc-content -->
</body>
</html>
